package com.manner.groupon.model.vo;

import com.manner.groupon.model.entity.GrouponCoupons;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class AdminCouponVO extends GrouponCoupons implements Serializable {

    private String storeName;

    private String create;


    public AdminCouponVO(Long id, String storeId, String title, String img, BigDecimal price, Integer effectDay, Integer canBuy, Integer isToGo, Double discount, Integer profit, Integer soldCount, BigDecimal unLinePrice, Integer stock, int status, Integer isDelete, LocalDateTime createTime, LocalDateTime updateTime, String storeName, String create) {
        super(id, storeId, title, img, price, effectDay, canBuy, isToGo, discount, profit, soldCount, unLinePrice, stock, status,isDelete, createTime, updateTime);
        this.storeName = storeName;
        this.create = create;
    }

    public AdminCouponVO(String storeName) {
        this.storeName = storeName;
    }
}
